﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace KeelKit.Dialogs
{
    public partial class frmSqlStr2Class : Form
    {
        public frmSqlStr2Class()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                bool ok = Commands.SQL2Class.BuildClassBySql(txtSQL.Text, txtViewName.Text);
                if (ok)
                {
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                Common.ShowInfo(ex.Message);

            }
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
